< previous page page_601 next page >

Page 601
0601-01.jpg
Figure 27.5
Selecting the ODBC driver is the
first step to setting up a data source.
0601-02.jpg
Figure 27.6
A Setup dialog box lets you specify the information
necessary to connect to an ODBC data source.
After setting the name, you need to choose the actual database file or server you want to use with your program. For the Access driver, this is done by clicking the Select button of the dialog box. You are then presented with a Select Database dialog box (which is basically an open-file dialog box). Try it by choosing an MDB file on your PC. Figure 27.7 shows a data source called MyDSN linked to the biblio database that comes with Visual Basic.
0601-03.jpg
Figure 27.7
The Access dialog box allows you to select
which MDB file you are going to be working with.
Keep in mind that the setup dialog boxes are driver dependent. In each case, however, you specify both a data-source name and the location of the data. Figure 27.8 shows the dialog box for Microsoft SQL Server.

 
< previous page page_601 next page >